﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfOrdenCompraFactura.aspx.cs" Inherits="CO.WfOrdenCompraFactura" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Styles/General.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/token-input-facebook.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
   
    <script src="../Scripts/jquery.tokeninput.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.purr.js" type="text/javascript"></script>
    <script src="../Scripts/General.js" type="text/javascript"></script>

    
     </head>
<body>
    <form id="form1" runat="server">


   
      <div class="ToolBar">
           <asp:ImageButton ID="btnGrabar" runat="server" ToolTip="Grabar" 
               onclick="btnGrabar_Click"  />
              
           
           <asp:Label ID="Label19" runat="server" Font-Bold="True" ForeColor="Black" 
               Text="Grabar"></asp:Label>
           &nbsp;
                      
           &nbsp;
                                 
           <asp:ImageButton ID="btnSalir" runat="server" onclick="btnSalir_Click" 
               style="width: 14px" ToolTip="Buscar" />
           <asp:Label ID="Label20" runat="server" Font-Bold="True" ForeColor="Black" 
               Text="Salir"></asp:Label>
           </div>
  <br />
 <div align="left">
    <div style="width: 675px">
 



        <div>
                
      
               <table class="w100">
                   <tr>
                       <td>
                           N°OC &nbsp;</td>
                       <td>
                           <asp:TextBox ID="txtIdOrdenCompra" runat="server" CssClass="esdTextBox" 
                    Width="100px"></asp:TextBox>
                       </td>
                       <td>
                           <asp:DropDownList ID="dpCliprod" runat="server" Width="200px">
                           </asp:DropDownList>
                       </td>
                       <td>
                           &nbsp;</td>
                   </tr>
                   <tr>
                       <td>
                           Fecha O/C
                       </td>
                       <td>
                           <asp:TextBox ID="txtfechaOC" runat="server" CssClass="esdTextBox" 
                    Width="100px"></asp:TextBox>
                       </td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                   </tr>
                   <tr>
                       <td>
                           Total O/C&nbsp;&nbsp;</td>
                       <td>
                           <asp:TextBox ID="txtTotalOC" runat="server" CssClass="esdTextBox" 
                    Width="100px"></asp:TextBox>
                       </td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                   </tr>
                   <tr>
                       <td>
                           Observaciones</td>
                       <td>
                           <asp:TextBox ID="txtObserv" runat="server" CssClass="esdTextBox" 
                    Width="300px" Height="30px"></asp:TextBox>

                       </td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                   </tr>
                   <tr>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                   </tr>
               </table>
             
             </div>
                    <asp:Button ID="btnNew" runat="server"  Text="Nuevo" 
                    CssClass="esdButtonStyle" Width="80px" onclick="btnNew_Click" />
      
        
                    &nbsp;<asp:Button ID="btnBuscar" runat="server"  
                        Text="Ver O.C" CssClass="esdButtonStyle" Width="80px" OnClick="btnBuscar_Click" />
              
        </div>

       
        <div>
           <br /> 
        </div>

   
    </div>
    <div>
    <div style="overflow: auto; width: 700px; height: 400px">
    <div class="DataDetail">
                    <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False"  ScrollBars="Auto" 
                            ScrollWidth="100%" ShowHeaderWhenEmpty="True"
                        CellPadding="0" GridLines="None" AllowSorting="True" 
                        onrowdatabound="gvList_RowDataBound" onrowcommand="gvList_RowCommand" 
                        onrowdeleting="gvList_RowDeleting">
                      
                    
                        <AlternatingRowStyle CssClass="esdGridAlternativeRowStyle" />
                        <Columns>
                                 <asp:TemplateField HeaderText="Item">
                                     <ItemTemplate>
                                         <asp:TextBox ID="txtItem" runat="server" CssClass="esdTextBox" Width="50px" Text='<%# DataBinder.Eval(Container, "DataItem.Nu_secuen") %>'></asp:TextBox>
                                     </ItemTemplate>
                                 </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Tipo. Doc">
                                   
                                     <ItemTemplate>
                                         <asp:DropDownList ID="dpTipoDoc" runat="server" Width="150px">
                                         </asp:DropDownList>
                                     </ItemTemplate>
                                 </asp:TemplateField>
                                 <asp:TemplateField HeaderText="#Documento">
                                     <ItemTemplate>
                                         <asp:TextBox ID="txtDocumento" runat="server" CssClass="esdTextBox" 
                                             Text='<%# DataBinder.Eval(Container, "DataItem.Nu_docum") %>'></asp:TextBox>
                                     </ItemTemplate>
                                 </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Fec.Documento">
                                     <ItemTemplate>
                                         <asp:TextBox ID="txtFecDocumento" runat="server" CssClass="esdTextBox" 
                                             Text='<%# DataBinder.Eval(Container, "DataItem.Fe_docum") %>'></asp:TextBox>
                                     </ItemTemplate>
                                 </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Total">
                                     <ItemTemplate>
                                         <asp:TextBox ID="txtTotal" runat="server" CssClass="esdTextBox" Width="100px" Text='<%# DataBinder.Eval(Container, "DataItem.mt_docum") %>'></asp:TextBox>
                                     </ItemTemplate>
                                 </asp:TemplateField>
    
                              <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkBxSelect" runat="server" />
                                    </ItemTemplate>
                        </asp:TemplateField>
                              <asp:TemplateField>

                             <ItemStyle HorizontalAlign="Center" Width="40px" CssClass="etiqueta"></ItemStyle>
                             <ItemTemplate>
                             <asp:ImageButton ID="btnEliminar" runat="server" ImageUrl="~/Images/Icons/Enabled/bt_borrar.gif"
                                 CommandName="CmdDel" 
                                 CommandArgument='<%# Container.DataItemIndex%>' ToolTip="Anular Factura">
                              </asp:ImageButton>
                            </ItemTemplate>
                           </asp:TemplateField>
    
                        </Columns>
                      
                        <HeaderStyle CssClass="esdGridHeaderStyle" />
                        <PagerStyle CssClass="gridPagerStyle" />
                        <RowStyle CssClass="esdGridRowStyle" />
                        <SelectedRowStyle CssClass="esdGridSelectedRowStyle" />
                    </asp:GridView>
             </div>

          
         <br />
          <div>

                 <asp:Label ID="lblMensaje" runat="server"></asp:Label>
          </div>
              <input id="hidVentana" runat="server" name="hidVentana" size="1" style="width: 32px;
                    height: 22px" type="hidden" />
    </div>
    </div>
    </form>
</body>
</html>

